﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;

namespace Please_starve.Common.Interpolators
{
    /// <summary>
    /// http://www.xnawiki.com/index.php/Interpolators
    /// </summary>
    public class Vector3Interpolator : Interpolator<Vector3>
    {
        protected override Vector3 Interpolate()
        {
            return smoothStep
                ? Vector3.SmoothStep(value1, value2, (float)(currentDuration / totalDuration))
                : Vector3.Lerp(value1, value2, (float)(currentDuration / totalDuration));
        }
    }
}


